<!--
 * @Author: Mr.Mao
 * @Date: 2021-11-01 10:41:40
 * @Last Modified by: Mr.Mao
 * @LastEditTime: 2021-11-03 09:47:38
 * @Description:
-->
<div class="div-set6 div-set0 div-set hide">
    <div class="form-group">
        <label class="col-sm-2 control-label">身份奖励设置：</label>
        <div class="col-sm-10">
            <table class="table table-hover  table-bordered">
                <thead>
                <tr>
                    <th class="txt_center">分销奖励</th>
                </tr>
                </thead>
                <!--<tbody id="d_role_box">
                <tr>
                    <td align="center">
                        {volist name="UsersRole" id="role" key='index'}

                        {$role.role_name} : <input type="text" name="award_value0[{$role.role_id}][num][1]"
                                                   class="" min="-1"
                                                   value="{$award_value[$role.role_id]['num'][1]}">
                        {if $role.level == 1}
                        购物积分
                        {else /}
                        %
                        {/if}
                        {/volist}
                    </td>
                </tr>

                </tbody>-->
                <tbody id="d_role_box">
                <tr>
                    <td align="center">
                        购买者身份 : <select name="award_value[0][buyId]" >
                        <option {if $award_value[0]['buyId'] == 0}selected="selected" {/if}  value="0">粉丝</option>
                        {volist name="UsersRole" id="role" key='index'}
                        <option {if $award_value[0]['buyId'] == $role.role_id }selected="selected"{/if}  value="{$role.role_id}"> {$role.role_name}</option>
                        {/volist}
                    </select>
                        <!--代理-->{$dailiname} : <input type="text" name="award_value[0][daili]"
                                      class="" min="-1"
                                      value="{$award_value[0]['daili']}">%
                        <!--经理-->{$jingliname}: <input type="text" name="award_value[0][jingli]"
                                      class="" min="-1"
                                      value="{$award_value[0]['jingli']}">%

                    </td>
                </tr>
                <tr>
                    <td align="center">
                        购买者身份 : <select name="award_value[1][buyId]" id="">
                        <option {if $award_value[1]['buyId'] == 0 }selected="selected"{/if} value="0">粉丝</option>
                        {volist name="UsersRole" id="role" key='index'}
                        <option {if $award_value[1]['buyId'] == $role.role_id }selected="selected"{/if} value="{$role.role_id}"> {$role.role_name}</option>
                        {/volist}
                    </select>
                        <!--代理-->{$dailiname} : <input type="text" name="award_value[1][daili]"
                                      class="" min="-1"
                                      value="{$award_value[1]['daili']}">%
                        <!--经理-->{$jingliname} : <input type="text" name="award_value[1][jingli]"
                                      class="" min="-1"
                                      value="{$award_value[1]['jingli']}">%

                    </td>
                </tr>
                <tr>
                    <td align="center">
                        购买者身份 : <select name="award_value[2][buyId]">
                        <option {if $award_value[2]['buyId'] == 0 }selected="selected"{/if} value="0">粉丝</option>
                        {volist name="UsersRole" id="role" key='index'}
                        <option {if $award_value[2]['buyId'] == $role.role_id }selected="selected"{/if} value="{$role.role_id}"> {$role.role_name}</option>
                        {/volist}
                    </select>
                        <!--代理-->{$dailiname} : <input type="text" name="award_value[2][daili]"
                                      class="" min="-1"
                                      value="{$award_value[2]['daili']}">%
                        <!--经理-->{$jingliname} : <input type="text" name="award_value[2][jingli]"
                                      class="" min="-1"
                                      value="{$award_value[2]['jingli']}">%

                    </td>
                </tr>
                <tr>
                    <td align="center">
                        {$role.goods_type}购买者身份 : <select name="award_value[3][buyId]">
                        <option {if $award_value[3]['buyId'] == 0 }selected="selected"{/if} value="0">粉丝</option>
                        {volist name="UsersRole" id="role" key='index'}
                        <option {if $award_value[3]['buyId'] == $role.role_id }selected="selected"{/if} value="{$role.role_id}"> {$role.role_name}</option>
                        {/volist}
                    </select>
                        <!--代理-->{$dailiname} : <input type="text" name="award_value[3][daili]"
                                      class="" min="-1"
                                      value="{$award_value[3]['daili']}">%
                        <!--经理-->{$jingliname} : <input type="text" name="award_value[3][jingli]"
                                      class="" min="-1"
                                      value="{$award_value[3]['jingli']}">%

                    </td>
                </tr>

                {if $row.goods_type == 6  || $row.goods_type == 0}
                <tr >
                    <td align="center">
                        会员推荐 -
                    </select>
                        <!--会员-->{$membername} : <input type="text" name="membermoney" class="" min="0"
                                                          value="{$row.membermoney}"> 购物分

                        <!--代理-->{$dailiname} : <input type="text" name="dailimoney"
                                                         class="" min="0"
                                                         value="{$row.dailimoney}">%
                        <!--经理-->{$jingliname} : <input type="text" name="jinlimoney"
                                                          class="" min="0"
                                                          value="{$row.jinlimoney}">%

                    </td>
                </tr>
                {else /}
                -
                {/if}



                </tbody>
            </table>
        </div>
    </div>
</div>

<div class="div-set4 div-set hide">
    <div class="form-group">
        <label class="col-sm-2 control-label">身份奖励设置：</label>
        <div class="col-sm-10   ">
            <table class="table table-hover col-sm-10 table-bordered">
                <thead>
                <tr>
                    <th class="txt_center">分销身份</th>
                    <th class="txt_center">推荐奖励</th>
                    <th class="txt_center">平级奖励</th>
                </tr>
                </thead>
                <tbody id="d_role_box">
                {volist name="UsersRole2" id="role" key='index'}
                <tr>
                    <td align="center">{$role.role_name}
                    </td>
                    <td align="center">
                        {if $role.role_id == 1}
                        直推 : <input type="text" name="award_value4[{$role.role_id}][num]" class=" "
                                    min="-1"
                                    value="{$award_value[$role.role_id]['num']}"> 元
                        {else /}
                        直推 : <input type="text" name="award_value4[{$role.role_id}][num]" class="" min="-1"
                                    value="{$award_value[$role.role_id]['num']}"> 元<br/>
                        见点 : <input type="text" name="award_value4[{$role.role_id}][see_num]" class=""
                                    min="-1" value="{$award_value[$role.role_id]['see_num']}"> 元
                        {/if}

                    </td>
                    <td align="center">
                        <label class="radio inline">
                            {if $role.role_id > 1 }
                            <input type="text" name="award_value4[{$role.role_id}][same_num]" class="input-ssmall"
                                   min="-1" value="{$award_value[$role.role_id]['same_num']}"> %
                            {else /}
                            -
                            {/if}

                        </label>
                    </td>
                </tr>
                {/volist}
                </tbody>
            </table>


        </div>
    </div>

</div>
<div class="form-group">
    <label class="col-sm-2 control-label">区域奖励设置：</label>
    <div class="col-sm-10">
        <table class="table table-hover  table-bordered">
            <thead>
            <tr>
                <th class="txt_center">分销身份</th>
                <th class="txt_center">区域奖励<span style="color: #e7141a;font-width: 700;"> 注：级差奖励设置金额必须：省>市>区>街道</span></th>
            </tr>
            </thead>
            <tbody id="d_role_box">
            {volist name="UsersLevel" id="level" key='index'}
            <tr>
                <td align="center">{$level.level_name}
                </td>
                <td align="center">
                    <label class="radio inline">
                        <input type="text" name="region_award_value[{$level.level_id}][num]" class=""
                               min="-1" value="{$region_award_value[$level.level_id]['num']}"> %

                    </label>
                </td>
            </tr>
            {/volist}
            </tbody>
        </table>


    </div>
</div>
<div class=" ">
    <div class="form-group">
        <label class="col-sm-2 control-label">奖金池设置：</label>
        <div class="col-sm-10">
            {volist name="jcList" id="jc" key='index'}
            <div style="margin-top: 10px">
                {$jc.jc_name} : <input type="text" name="jc[{$jc.level_id}][scale]" class="" min="-1"
                                       value="{$jcs[$jc.level_id]['scale']}">%
            </div>
            {/volist}
        </div>
    </div>
</div>

<div class=" ">
    <div class="form-group">
        <label class="col-sm-2 control-label">限制购买数：</label>
        <div class="col-sm-10">
            <div style="margin-top: 10px">
                数量 : <input type="text" name="buy_max_num" class="" min="0"
                                       value="{$row.buy_max_num}"> <span style="color:red">* 说明：当月内购买数量不能超过限制数（0表示不限制）紧限会员级别</span>
            </div>

        </div>
    </div>
</div>
